<?

JCAT_Package::ImportClass('JCAT_UIGtkWidgetCreator',JCAT::PACKAGE_UIGTK) ;

/**
 * Gtk窗体 创建器
 * 此文件根据 Glade窗口模版文件 自动产生，当 原Glade文件更改后，此文件也会及时重建。
 *
 * !注意：此文件由 JCAT 框架自动产生、维护，任何情况下都不应该手工编辑此文件，以免 JCAT 框架维护此文件时丢弃手工更改的内容。
 *
 * @author	JCAT_UIGtkGlade
 * @create	2008.03.22 23:20:56
 * @access	public
 */
class JCAT_GtkGlade_6eb6add67a4c793683df50a3275a6afd extends JCAT_UIGtkWidgetCreator
{
	// 公共方法 ///////////////////////////////////////////////////////////
	/**
	 * what's this
	 * 
	 * @access	public
	 * @return	array
	 */
	public function JCAT_GtkGlade_6eb6add67a4c793683df50a3275a6afd()
	{
		$this->arrWidgetTree = unserialize('a:1:{s:17:"GtkWindow:window1";a:1:{s:34:"GtkHBox:JCATMVCObjectContainerView";a:2:{s:33:"GtkScrolledWindow:scrolledwindow1";a:1:{s:29:"GtkTreeView:TreeJCATMVCObject";a:0:{}}s:25:"GtkVButtonBox:vbuttonbox1";a:4:{s:22:"GtkButton:BtnAddIUCtrl";a:0:{}s:23:"GtkButton:BtnEditIUCtrl";a:0:{}s:25:"GtkButton:BtnDeleteOption";a:0:{}s:19:"GtkButton:BtnReload";a:0:{}}}}}') ;
		$this->arrWidgetIds = unserialize('a:9:{s:7:"window1";s:9:"GtkWindow";s:26:"JCATMVCObjectContainerView";s:7:"GtkHBox";s:15:"scrolledwindow1";s:17:"GtkScrolledWindow";s:17:"TreeJCATMVCObject";s:11:"GtkTreeView";s:11:"vbuttonbox1";s:13:"GtkVButtonBox";s:12:"BtnAddIUCtrl";s:9:"GtkButton";s:13:"BtnEditIUCtrl";s:9:"GtkButton";s:15:"BtnDeleteOption";s:9:"GtkButton";s:9:"BtnReload";s:9:"GtkButton";}') ;
		$this->sTemplatePath = '/home/alee/Project/JeCat/PHPToolbox/Resource/Template/template.JCATMVCObjectContainerView.glade' ;
	}


	// 私有方法 ///////////////////////////////////////////////

	/**
	 * 创建窗体 GtkWindow:window1
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkWindow
	 */
	protected function Create_window1(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$window1 = new GtkWindow() ;


		$JCATMVCObjectContainerView = $this->GetWidget('JCATMVCObjectContainerView',&$arrObjectForSignal) ;
		$window1->add($JCATMVCObjectContainerView) ;

		$window1->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;


		// 窗体名称
		if( isset($window1) and $window1->get_name()=='GtkWindow' )
		{
			$window1->set_name('window1') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($window1) and !$window1->get_data('creator') )
		{
			$window1->set_data('creator',$this) ;
		}
					
		return $window1 ;
	}



	/**
	 * 创建窗体 GtkHBox:JCATMVCObjectContainerView
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkHBox
	 */
	protected function Create_JCATMVCObjectContainerView(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$JCATMVCObjectContainerView = new GtkHBox() ;
		$JCATMVCObjectContainerView->set_homogeneous(false) ;
		$JCATMVCObjectContainerView->set_spacing(0) ;

		$scrolledwindow1 = $this->GetWidget('scrolledwindow1',&$arrObjectForSignal) ;
		$JCATMVCObjectContainerView->pack_start( $scrolledwindow1, true, true, 0 ) ;


		$vbuttonbox1 = $this->GetWidget('vbuttonbox1',&$arrObjectForSignal) ;
		$JCATMVCObjectContainerView->pack_start( $vbuttonbox1, false, true, 0 ) ;

		$JCATMVCObjectContainerView->set_visible( true, false ) ;
		$JCATMVCObjectContainerView->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;


		// 窗体名称
		if( isset($JCATMVCObjectContainerView) and $JCATMVCObjectContainerView->get_name()=='GtkHBox' )
		{
			$JCATMVCObjectContainerView->set_name('JCATMVCObjectContainerView') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($JCATMVCObjectContainerView) and !$JCATMVCObjectContainerView->get_data('creator') )
		{
			$JCATMVCObjectContainerView->set_data('creator',$this) ;
		}
					
		return $JCATMVCObjectContainerView ;
	}



	/**
	 * 创建窗体 GtkScrolledWindow:scrolledwindow1
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkScrolledWindow
	 */
	protected function Create_scrolledwindow1(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$scrolledwindow1 = new GtkScrolledWindow() ;
		$scrolledwindow1->set_policy(Gtk::POLICY_AUTOMATIC,Gtk::POLICY_AUTOMATIC) ;

		$TreeJCATMVCObject = $this->GetWidget('TreeJCATMVCObject',&$arrObjectForSignal) ;
		$scrolledwindow1->add_with_viewport($TreeJCATMVCObject) ;
		$scrolledwindow1->set_size_request( -1, 180 ) ;
		$scrolledwindow1->set_visible( true, false ) ;
		$scrolledwindow1->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;


		// 窗体名称
		if( isset($scrolledwindow1) and $scrolledwindow1->get_name()=='GtkScrolledWindow' )
		{
			$scrolledwindow1->set_name('scrolledwindow1') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($scrolledwindow1) and !$scrolledwindow1->get_data('creator') )
		{
			$scrolledwindow1->set_data('creator',$this) ;
		}
					
		return $scrolledwindow1 ;
	}



	/**
	 * 创建窗体 GtkTreeView:TreeJCATMVCObject
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkTreeView
	 */
	protected function Create_TreeJCATMVCObject(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$TreeJCATMVCObject = new GtkTreeView() ;
		$TreeJCATMVCObject->set_headers_clickable(true) ;
		$TreeJCATMVCObject->set_visible( true, false ) ;
		$TreeJCATMVCObject->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;


		// 窗体名称
		if( isset($TreeJCATMVCObject) and $TreeJCATMVCObject->get_name()=='GtkTreeView' )
		{
			$TreeJCATMVCObject->set_name('TreeJCATMVCObject') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($TreeJCATMVCObject) and !$TreeJCATMVCObject->get_data('creator') )
		{
			$TreeJCATMVCObject->set_data('creator',$this) ;
		}
					
		return $TreeJCATMVCObject ;
	}



	/**
	 * 创建窗体 GtkVButtonBox:vbuttonbox1
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkVButtonBox
	 */
	protected function Create_vbuttonbox1(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$vbuttonbox1 = new GtkVButtonBox() ;
		$vbuttonbox1->set_homogeneous(false) ;
		$vbuttonbox1->set_spacing(0) ;
		$vbuttonbox1->set_layout(Gtk::BUTTONBOX_START) ;

		$BtnAddIUCtrl = $this->GetWidget('BtnAddIUCtrl',&$arrObjectForSignal) ;
		$vbuttonbox1->pack_start( $BtnAddIUCtrl, true, true, 0 ) ;


		$BtnEditIUCtrl = $this->GetWidget('BtnEditIUCtrl',&$arrObjectForSignal) ;
		$vbuttonbox1->pack_start( $BtnEditIUCtrl, true, true, 0 ) ;


		$BtnDeleteOption = $this->GetWidget('BtnDeleteOption',&$arrObjectForSignal) ;
		$vbuttonbox1->pack_start( $BtnDeleteOption, true, true, 0 ) ;


		$BtnReload = $this->GetWidget('BtnReload',&$arrObjectForSignal) ;
		$vbuttonbox1->pack_start( $BtnReload, true, true, 0 ) ;

		$vbuttonbox1->set_visible( true, false ) ;
		$vbuttonbox1->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;


		// 窗体名称
		if( isset($vbuttonbox1) and $vbuttonbox1->get_name()=='GtkVButtonBox' )
		{
			$vbuttonbox1->set_name('vbuttonbox1') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($vbuttonbox1) and !$vbuttonbox1->get_data('creator') )
		{
			$vbuttonbox1->set_data('creator',$this) ;
		}
					
		return $vbuttonbox1 ;
	}



	/**
	 * 创建窗体 GtkButton:BtnAddIUCtrl
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkButton
	 */
	protected function Create_BtnAddIUCtrl(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$BtnAddIUCtrl = new GtkButton() ;
		$BtnAddIUCtrl->set_label('导入 ..') ;
		$BtnAddIUCtrl->set_visible( true, false ) ;
		$BtnAddIUCtrl->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;
		$BtnAddIUCtrl->connect( 'clicked', array('JCAT_EventProcessor','EventTransmitForGtkSignal') ,$TheController, 'BtnAddIUCtrl-clicked' ) ;


		// 窗体名称
		if( isset($BtnAddIUCtrl) and $BtnAddIUCtrl->get_name()=='GtkButton' )
		{
			$BtnAddIUCtrl->set_name('BtnAddIUCtrl') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($BtnAddIUCtrl) and !$BtnAddIUCtrl->get_data('creator') )
		{
			$BtnAddIUCtrl->set_data('creator',$this) ;
		}
					
		return $BtnAddIUCtrl ;
	}



	/**
	 * 创建窗体 GtkButton:BtnEditIUCtrl
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkButton
	 */
	protected function Create_BtnEditIUCtrl(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$BtnEditIUCtrl = new GtkButton() ;
		$BtnEditIUCtrl->set_label('编辑 ..') ;
		$BtnEditIUCtrl->set_visible( true, false ) ;
		$BtnEditIUCtrl->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;
		$BtnEditIUCtrl->connect( 'clicked', array('JCAT_EventProcessor','EventTransmitForGtkSignal') ,$TheView, 'BtnEditIUCtrl-clicked' ) ;


		// 窗体名称
		if( isset($BtnEditIUCtrl) and $BtnEditIUCtrl->get_name()=='GtkButton' )
		{
			$BtnEditIUCtrl->set_name('BtnEditIUCtrl') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($BtnEditIUCtrl) and !$BtnEditIUCtrl->get_data('creator') )
		{
			$BtnEditIUCtrl->set_data('creator',$this) ;
		}
					
		return $BtnEditIUCtrl ;
	}



	/**
	 * 创建窗体 GtkButton:BtnDeleteOption
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkButton
	 */
	protected function Create_BtnDeleteOption(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$BtnDeleteOption = new GtkButton() ;
		$BtnDeleteOption->set_label('删除') ;
		$BtnDeleteOption->set_visible( true, false ) ;
		$BtnDeleteOption->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;
		$BtnDeleteOption->connect( 'clicked', array('JCAT_EventProcessor','EventTransmitForGtkSignal') ,$TheView, 'BtnDeleteOption-clicked' ) ;


		// 窗体名称
		if( isset($BtnDeleteOption) and $BtnDeleteOption->get_name()=='GtkButton' )
		{
			$BtnDeleteOption->set_name('BtnDeleteOption') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($BtnDeleteOption) and !$BtnDeleteOption->get_data('creator') )
		{
			$BtnDeleteOption->set_data('creator',$this) ;
		}
					
		return $BtnDeleteOption ;
	}



	/**
	 * 创建窗体 GtkButton:BtnReload
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkButton
	 */
	protected function Create_BtnReload(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$BtnReload = new GtkButton() ;
		$BtnReload->set_label('重新载入') ;
		$BtnReload->set_visible( true, false ) ;
		$BtnReload->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;
		$BtnReload->connect( 'clicked', array($TheView,'LoadChildrenObject')  ) ;


		// 窗体名称
		if( isset($BtnReload) and $BtnReload->get_name()=='GtkButton' )
		{
			$BtnReload->set_name('BtnReload') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($BtnReload) and !$BtnReload->get_data('creator') )
		{
			$BtnReload->set_data('creator',$this) ;
		}
					
		return $BtnReload ;
	}




}

?>